package com.cdtye.itps.cms.mapper.origindata;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cdtye.itps.cms.dao.origindata.entity.JcjcDetectC4Index;
import com.cdtye.itps.cms.dao.origindata.vo.JcjcDetectC4IndexVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface JcjcDetectC4IndexMapper extends BaseMapper<JcjcDetectC4Index> {
    /**
     *根据detectJobId查询相关4cIndex所关联的区站信息
     */
    List<Map<String,Object>> getC4IndexSiteListByDetectJobId(@Param("vo") JcjcDetectC4IndexVo vo);

    /**
     * 根据detectJobId和siteId查询4cIndex所相关的支柱信息
     */
    List<Map<String,Object>> getC4IndexPillarListByDetectJobIdAndSiteId(@Param("vo") JcjcDetectC4IndexVo vo);

    /**
     * 4C检测数据详情页面区站和支柱查询
     */
    IPage<Map<String,Object>> getC4DetailPillarInfo(IPage page,@Param("vo") JcjcDetectC4IndexVo vo);
}
